Control-Shift-L Function Button needed

Greetings,

We use the magical Control-Shift-L to do formatting. I would like to make this function a button. Does anyone have the dxl for this operation or something similar to it? Primarily this is used to make bulleted lists where the text is all indented. Just using the bullet button and the indent button doesn't align the text but will wrap to the start of the bullet. I would like to be able to highlight text, hit a button and have it bulletted and text aligned. It would be also okay to make a button that the callback function is calling the DOORS Control-Shift-L function.

Thanks,
Greg
SystemAdmin - Thu Apr 04 09:30:30 EDT 2013

Re: Control-Shift-L Function Button needed
Tony_Goodman - Thu Apr 04 09:39:38 EDT 2013

The following will do what you ask.
 

if (inplaceEditing(current Module))
{
    callStdItem_(inplaceTextBulletItem)
}

 


Tony Goodman, www.smartdxl.com

 

Re: Control-Shift-L Function Button needed
GregM_dxler - Wed Apr 17 09:01:50 EDT 2013

Tony_Goodman - Thu Apr 04 09:39:38 EDT 2013

The following will do what you ask.
 

if (inplaceEditing(current Module))
{
    callStdItem_(inplaceTextBulletItem)
}

 


Tony Goodman, www.smartdxl.com

 

Thanks Tony, sorry for the slow response.  It is not quite what I need.

When I run this, it adds a bullet, but the text wraps around to the start of the bullet.  When I do a Cntrl-Shift-L, the text wraps to align with the start of the text.  This is what I really need since it is better formatting and easier to read.  Ideally, I would like to be able to have this work in a rich text field in a dialog box.  I've already verified that Cntrl-Shift-L will work in the rich text field.

I know I could get the rich text codes that DOORS uses and make my own script to insert that into the rich text, but just wondered if anyone else knew if there is a command for this already.

Greg

Re: Control-Shift-L Function Button needed
Tony_Goodman - Thu Apr 18 07:16:29 EDT 2013

I see.

Crtl-Shift-L does indeed add a hanging indent the the text, whereas the bullet button does not.

Looking at the rich text, the only difference is the addition of "\fi-360\li360" which creates the hanging indent.

I also notice that this works in MS Word etc, so it may be a windows thing rather than a DOORS thing.

Tony